import { TableColumn } from '@/interface/commonTypes.ts'
import { reactive } from 'vue'

type StatusData = {
  [key: string]: TableColumn[];
}

export const columnObj: StatusData = reactive({
  // 就诊
  consultation: [
    {
      "prop": "registrationNumber",
      "label": "挂号单"
    },
    {
      "prop": "outpatientNumber",
      "label": "门诊号"
    },
    {
      "prop": "name",
      "label": "姓名"
    },
    {
      "prop": "gender",
      "label": "性别"
    },
    {
      "prop": "age",
      "label": "年龄"
    },
    {
      "prop": "urgent",
      "label": "急"
    },
    {
      "prop": "review",
      "label": "复"
    },
    {
      "prop": "community",
      "label": "社区"
    },
    {
      "prop": "visitTime",
      "label": "就诊时间",
      "width": "150px"
    },
    {
      "prop": "referralStatus",
      "label": "转诊状态",
      "width": "100px"
    },
    {
      "prop": "occurrenceTime",
      "label": "发生时间",
      "width": "150px"
    }
  ],
  // 候诊
  waiting: [
    {
      "prop": "registrationNumber",
      "label": "挂号单"
    },
    {
      "prop": "outpatientNumber",
      "label": "门诊号"
    },
    {
      "prop": "name",
      "label": "姓名"
    },
    {
      "prop": "gender",
      "label": "性别"
    },
    {
      "prop": "age",
      "label": "年龄"
    },
    {
      "prop": "urgent",
      "label": "急"
    },
    {
      "prop": "review",
      "label": "复"
    },
    {
      "prop": "community",
      "label": "社区"
    },
    {
      "prop": "clinicRoom",
      "label": "就诊诊室",
      "width": "100px"
    },
    {
      "prop": "sequenceNumber",
      "label": "号序"
    },
    {
      "prop": "triageTime",
      "label": "分诊时间",
      "width": "100px"
    },
    {
      "prop": "registrationTime",
      "label": "挂号时间",
      "width": "150px"
    },
    {
      "prop": "referralStatus",
      "label": "转诊状态",
      "width": "100px"
    }
  ],
  // 转诊
  referral: [
    {
      "prop": "registrationNumber",
      "label": "挂号单"
    },
    {
      "prop": "outpatientNumber",
      "label": "门诊号"
    },
    {
      "prop": "name",
      "label": "姓名"
    },
    {
      "prop": "gender",
      "label": "性别"
    },
    {
      "prop": "age",
      "label": "年龄"
    },
    {
      "prop": "urgent",
      "label": "急"
    },
    {
      "prop": "review",
      "label": "复"
    },
    {
      "prop": "community",
      "label": "社区"
    },
    {
      "prop": "registrationTime",
      "label": "挂号时间",
      "width": "150px"
    },
    {
      "prop": "referralStatus",
      "label": "转诊状态",
      "width": "100px"
    }
  ],
  // 已诊
  diagnosed: [
    {
      "prop": "registrationNumber",
      "label": "挂号单"
    },
    {
      "prop": "outpatientNumber",
      "label": "门诊号"
    },
    {
      "prop": "name",
      "label": "姓名"
    },
    {
      "prop": "gender",
      "label": "性别"
    },
    {
      "prop": "age",
      "label": "年龄"
    },
    {
      "prop": "urgent",
      "label": "急"
    },
    {
      "prop": "review",
      "label": "复"
    },
    {
      "prop": "community",
      "label": "社区"
    },
    {
      "prop": "time",
      "label": "时间",
      "width": "150px"
    },
    {
      "prop": "attendingPhysician",
      "label": "就诊医生",
      "width": "100px"
    }
  ],
})
